[INFO] cloning repository https://github.com/vegetabledogdog/blockchain-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vegetabledogdog/blockchain-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvegetabledogdog%2Fblockchain-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvegetabledogdog%2Fblockchain-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] dadc207703b51cbb7348320ac61afdd14ce3016e
[INFO] fixing vegetabledogdog/blockchain-rust against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvegetabledogdog%2Fblockchain-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/vegetabledogdog/blockchain-rust
[INFO] finished tweaking git repo https://github.com/vegetabledogdog/blockchain-rust
[INFO] tweaked toml for git repo https://github.com/vegetabledogdog/blockchain-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/vegetabledogdog/blockchain-rust on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/vegetabledogdog/blockchain-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] c92ed50498e77052e707cefff2472319116ab7b0a05b17baeb45cf6329997ef9
[INFO] running `Command { std: "docker" "start" "c92ed50498e77052e707cefff2472319116ab7b0a05b17baeb45cf6329997ef9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c92ed50498e77052e707cefff2472319116ab7b0a05b17baeb45cf6329997ef9" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c92ed50498e77052e707cefff2472319116ab7b0a05b17baeb45cf6329997ef9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c92ed50498e77052e707cefff2472319116ab7b0a05b17baeb45cf6329997ef9" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Compiling proc-macro2 v1.0.70
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling num-traits v0.2.17
[INFO] [stderr]    Compiling memoffset v0.9.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.17
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling serde v1.0.193
[INFO] [stderr]     Checking smallvec v1.11.2
[INFO] [stderr]     Checking instant v0.1.12
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling num-bigint v0.4.4
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking spin v0.5.2
[INFO] [stderr]     Checking log v0.4.20
[INFO] [stderr]     Checking cpufeatures v0.2.11
[INFO] [stderr]     Checking iana-time-zone v0.1.58
[INFO] [stderr]     Checking bs58 v0.4.0
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]     Checking ripemd v0.1.3
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling cc v1.0.83
[INFO] [stderr]     Checking crossbeam-epoch v0.9.16
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]    Compiling syn v2.0.41
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]     Checking chrono v0.4.31
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling serde_derive v1.0.193
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking blockchain-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/lib.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/server.rs:36:36
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let ln = TcpListener::bind(&NODE_ADDRESS).unwrap();
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let ln = TcpListener::bind(&raw const NODE_ADDRESS).unwrap();
[INFO] [stdout]    |                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/server.rs:55:29
[INFO] [stdout]    |
[INFO] [stdout] 55 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/server.rs:74:17
[INFO] [stdout]    |
[INFO] [stdout] 74 |                 KNOWN_NODES.retain(|node| *node != addr);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout] 19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:114:13
[INFO] [stdout]     |
[INFO] [stdout] 114 |             KNOWN_NODES.push(payload.addr_from);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:126:29
[INFO] [stdout]     |
[INFO] [stdout] 126 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:152:29
[INFO] [stdout]     |
[INFO] [stdout] 152 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:175:21
[INFO] [stdout]     |
[INFO] [stdout] 175 |                     BLOCKS_IN_TRANSIT.remove(i);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:183:17
[INFO] [stdout]     |
[INFO] [stdout] 183 |             if !MEMPOOL.contains_key(&hex::encode(tx_id.clone())) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:199:29
[INFO] [stdout]     |
[INFO] [stdout] 199 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:235:29
[INFO] [stdout]     |
[INFO] [stdout] 235 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:250:9
[INFO] [stdout]     |
[INFO] [stdout] 250 |         MEMPOOL.insert(hex::encode(tx.get_id()), tx.clone());
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:254:25
[INFO] [stdout]     |
[INFO] [stdout] 254 |             for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:260:19
[INFO] [stdout]     |
[INFO] [stdout] 260 |             while MEMPOOL.len() >= 2 && MINING_ADDRESS.len() > 0 {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:260:41
[INFO] [stdout]     |
[INFO] [stdout] 260 |             while MEMPOOL.len() >= 2 && MINING_ADDRESS.len() > 0 {
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:263:32
[INFO] [stdout]     |
[INFO] [stdout] 263 |                 for (_, tx) in MEMPOOL.clone() {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:274:58
[INFO] [stdout]     |
[INFO] [stdout] 274 |                 let cb_tx = transaction::new_coinbase_tx(MINING_ADDRESS.clone(), "".to_string());
[INFO] [stdout]     |                                                          ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:284:21
[INFO] [stdout]     |
[INFO] [stdout] 284 |                     MEMPOOL.remove(&tx_id);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:287:29
[INFO] [stdout]     |
[INFO] [stdout] 287 |                 for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:293:20
[INFO] [stdout]     |
[INFO] [stdout] 293 |                 if MEMPOOL.len() > 0 {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:311:29
[INFO] [stdout]     |
[INFO] [stdout] 311 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:330:12
[INFO] [stdout]     |
[INFO] [stdout] 330 |         if BLOCKS_IN_TRANSIT.len() > 0 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:350:9
[INFO] [stdout]     |
[INFO] [stdout] 350 |         KNOWN_NODES.extend(payload.addr_list);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:351:50
[INFO] [stdout]     |
[INFO] [stdout] 351 |         println!("There are {} known nodes now", KNOWN_NODES.len());
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:376:21
[INFO] [stdout]     |
[INFO] [stdout] 376 |         for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:387:21
[INFO] [stdout]     |
[INFO] [stdout] 387 |         for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Migrating src/main.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/server.rs:36:36
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let ln = TcpListener::bind(&NODE_ADDRESS).unwrap();
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let ln = TcpListener::bind(&raw const NODE_ADDRESS).unwrap();
[INFO] [stdout]    |                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/server.rs:55:29
[INFO] [stdout]    |
[INFO] [stdout] 55 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/server.rs:74:17
[INFO] [stdout]    |
[INFO] [stdout] 74 |                 KNOWN_NODES.retain(|node| *node != addr);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout] 19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:114:13
[INFO] [stdout]     |
[INFO] [stdout] 114 |             KNOWN_NODES.push(payload.addr_from);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:126:29
[INFO] [stdout]     |
[INFO] [stdout] 126 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:152:29
[INFO] [stdout]     |
[INFO] [stdout] 152 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:175:21
[INFO] [stdout]     |
[INFO] [stdout] 175 |                     BLOCKS_IN_TRANSIT.remove(i);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:183:17
[INFO] [stdout]     |
[INFO] [stdout] 183 |             if !MEMPOOL.contains_key(&hex::encode(tx_id.clone())) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:199:29
[INFO] [stdout]     |
[INFO] [stdout] 199 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:235:29
[INFO] [stdout]     |
[INFO] [stdout] 235 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:250:9
[INFO] [stdout]     |
[INFO] [stdout] 250 |         MEMPOOL.insert(hex::encode(tx.get_id()), tx.clone());
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:254:25
[INFO] [stdout]     |
[INFO] [stdout] 254 |             for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:260:19
[INFO] [stdout]     |
[INFO] [stdout] 260 |             while MEMPOOL.len() >= 2 && MINING_ADDRESS.len() > 0 {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:260:41
[INFO] [stdout]     |
[INFO] [stdout] 260 |             while MEMPOOL.len() >= 2 && MINING_ADDRESS.len() > 0 {
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:263:32
[INFO] [stdout]     |
[INFO] [stdout] 263 |                 for (_, tx) in MEMPOOL.clone() {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:274:58
[INFO] [stdout]     |
[INFO] [stdout] 274 |                 let cb_tx = transaction::new_coinbase_tx(MINING_ADDRESS.clone(), "".to_string());
[INFO] [stdout]     |                                                          ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:284:21
[INFO] [stdout]     |
[INFO] [stdout] 284 |                     MEMPOOL.remove(&tx_id);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:287:29
[INFO] [stdout]     |
[INFO] [stdout] 287 |                 for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:293:20
[INFO] [stdout]     |
[INFO] [stdout] 293 |                 if MEMPOOL.len() > 0 {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:311:29
[INFO] [stdout]     |
[INFO] [stdout] 311 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:330:12
[INFO] [stdout]     |
[INFO] [stdout] 330 |         if BLOCKS_IN_TRANSIT.len() > 0 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:350:9
[INFO] [stdout]     |
[INFO] [stdout] 350 |         KNOWN_NODES.extend(payload.addr_list);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:351:50
[INFO] [stdout]     |
[INFO] [stdout] 351 |         println!("There are {} known nodes now", KNOWN_NODES.len());
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:376:21
[INFO] [stdout]     |
[INFO] [stdout] 376 |         for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:387:21
[INFO] [stdout]     |
[INFO] [stdout] 387 |         for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.86s
[INFO] [stderr] crater-edition-check: blockchain-rust v0.1.0 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking blockchain-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: fields `left` and `right` are never read
[INFO] [stdout]   --> src/merkle_tree.rs:9:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct MerkleNode {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout]  9 |     pub left: Option<Box<MerkleNode>>,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 10 |     pub right: Option<Box<MerkleNode>>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MerkleNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/server.rs:36:36
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let ln = TcpListener::bind(&NODE_ADDRESS).unwrap();
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let ln = TcpListener::bind(&raw const NODE_ADDRESS).unwrap();
[INFO] [stdout]    |                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/server.rs:55:29
[INFO] [stdout]    |
[INFO] [stdout] 55 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/server.rs:74:17
[INFO] [stdout]    |
[INFO] [stdout] 74 |                 KNOWN_NODES.retain(|node| *node != addr);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout] 19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:114:13
[INFO] [stdout]     |
[INFO] [stdout] 114 |             KNOWN_NODES.push(payload.addr_from);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:126:29
[INFO] [stdout]     |
[INFO] [stdout] 126 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:152:29
[INFO] [stdout]     |
[INFO] [stdout] 152 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:175:21
[INFO] [stdout]     |
[INFO] [stdout] 175 |                     BLOCKS_IN_TRANSIT.remove(i);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:183:17
[INFO] [stdout]     |
[INFO] [stdout] 183 |             if !MEMPOOL.contains_key(&hex::encode(tx_id.clone())) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:199:29
[INFO] [stdout]     |
[INFO] [stdout] 199 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:235:29
[INFO] [stdout]     |
[INFO] [stdout] 235 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:250:9
[INFO] [stdout]     |
[INFO] [stdout] 250 |         MEMPOOL.insert(hex::encode(tx.get_id()), tx.clone());
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:254:25
[INFO] [stdout]     |
[INFO] [stdout] 254 |             for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:260:19
[INFO] [stdout]     |
[INFO] [stdout] 260 |             while MEMPOOL.len() >= 2 && MINING_ADDRESS.len() > 0 {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:260:41
[INFO] [stdout]     |
[INFO] [stdout] 260 |             while MEMPOOL.len() >= 2 && MINING_ADDRESS.len() > 0 {
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:263:32
[INFO] [stdout]     |
[INFO] [stdout] 263 |                 for (_, tx) in MEMPOOL.clone() {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:274:58
[INFO] [stdout]     |
[INFO] [stdout] 274 |                 let cb_tx = transaction::new_coinbase_tx(MINING_ADDRESS.clone(), "".to_string());
[INFO] [stdout]     |                                                          ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:284:21
[INFO] [stdout]     |
[INFO] [stdout] 284 |                     MEMPOOL.remove(&tx_id);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:287:29
[INFO] [stdout]     |
[INFO] [stdout] 287 |                 for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:293:20
[INFO] [stdout]     |
[INFO] [stdout] 293 |                 if MEMPOOL.len() > 0 {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:311:29
[INFO] [stdout]     |
[INFO] [stdout] 311 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:330:12
[INFO] [stdout]     |
[INFO] [stdout] 330 |         if BLOCKS_IN_TRANSIT.len() > 0 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:350:9
[INFO] [stdout]     |
[INFO] [stdout] 350 |         KNOWN_NODES.extend(payload.addr_list);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:351:50
[INFO] [stdout]     |
[INFO] [stdout] 351 |         println!("There are {} known nodes now", KNOWN_NODES.len());
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:376:21
[INFO] [stdout]     |
[INFO] [stdout] 376 |         for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:387:21
[INFO] [stdout]     |
[INFO] [stdout] 387 |         for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `blockchain-rust` (lib test) due to 25 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: fields `left` and `right` are never read
[INFO] [stdout]   --> src/merkle_tree.rs:9:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct MerkleNode {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout]  9 |     pub left: Option<Box<MerkleNode>>,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 10 |     pub right: Option<Box<MerkleNode>>,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MerkleNode` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/server.rs:36:36
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let ln = TcpListener::bind(&NODE_ADDRESS).unwrap();
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let ln = TcpListener::bind(&raw const NODE_ADDRESS).unwrap();
[INFO] [stdout]    |                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/server.rs:55:29
[INFO] [stdout]    |
[INFO] [stdout] 55 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/server.rs:74:17
[INFO] [stdout]    |
[INFO] [stdout] 74 |                 KNOWN_NODES.retain(|node| *node != addr);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]    |
[INFO] [stdout] 19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout] 19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:114:13
[INFO] [stdout]     |
[INFO] [stdout] 114 |             KNOWN_NODES.push(payload.addr_from);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:126:29
[INFO] [stdout]     |
[INFO] [stdout] 126 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:152:29
[INFO] [stdout]     |
[INFO] [stdout] 152 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:175:21
[INFO] [stdout]     |
[INFO] [stdout] 175 |                     BLOCKS_IN_TRANSIT.remove(i);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:183:17
[INFO] [stdout]     |
[INFO] [stdout] 183 |             if !MEMPOOL.contains_key(&hex::encode(tx_id.clone())) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:199:29
[INFO] [stdout]     |
[INFO] [stdout] 199 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:235:29
[INFO] [stdout]     |
[INFO] [stdout] 235 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:250:9
[INFO] [stdout]     |
[INFO] [stdout] 250 |         MEMPOOL.insert(hex::encode(tx.get_id()), tx.clone());
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:254:25
[INFO] [stdout]     |
[INFO] [stdout] 254 |             for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:260:19
[INFO] [stdout]     |
[INFO] [stdout] 260 |             while MEMPOOL.len() >= 2 && MINING_ADDRESS.len() > 0 {
[INFO] [stdout]     |                   ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:260:41
[INFO] [stdout]     |
[INFO] [stdout] 260 |             while MEMPOOL.len() >= 2 && MINING_ADDRESS.len() > 0 {
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:263:32
[INFO] [stdout]     |
[INFO] [stdout] 263 |                 for (_, tx) in MEMPOOL.clone() {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:274:58
[INFO] [stdout]     |
[INFO] [stdout] 274 |                 let cb_tx = transaction::new_coinbase_tx(MINING_ADDRESS.clone(), "".to_string());
[INFO] [stdout]     |                                                          ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:284:21
[INFO] [stdout]     |
[INFO] [stdout] 284 |                     MEMPOOL.remove(&tx_id);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:287:29
[INFO] [stdout]     |
[INFO] [stdout] 287 |                 for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:293:20
[INFO] [stdout]     |
[INFO] [stdout] 293 |                 if MEMPOOL.len() > 0 {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  21 - static mut MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]  21 + static MEMPOOL: Lazy<HashMap<String, Transaction>> = Lazy::new(|| HashMap::new());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:311:29
[INFO] [stdout]     |
[INFO] [stdout] 311 |         addr_from: unsafe { NODE_ADDRESS.clone() },
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:330:12
[INFO] [stdout]     |
[INFO] [stdout] 330 |         if BLOCKS_IN_TRANSIT.len() > 0 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/server.rs:350:9
[INFO] [stdout]     |
[INFO] [stdout] 350 |         KNOWN_NODES.extend(payload.addr_list);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:351:50
[INFO] [stdout]     |
[INFO] [stdout] 351 |         println!("There are {} known nodes now", KNOWN_NODES.len());
[INFO] [stdout]     |                                                  ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:376:21
[INFO] [stdout]     |
[INFO] [stdout] 376 |         for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/server.rs:387:21
[INFO] [stdout]     |
[INFO] [stdout] 387 |         for node in KNOWN_NODES.clone() {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: this type already provides "interior mutability", so its binding doesn't need to be declared as mutable
[INFO] [stdout]     |
[INFO] [stdout]  19 - pub static mut KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]  19 + pub static KNOWN_NODES: Lazy<Vec<String>> = Lazy::new(|| vec![String::from("127.0.0.1:3000")]);
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `blockchain-rust` (lib) due to 25 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "c92ed50498e77052e707cefff2472319116ab7b0a05b17baeb45cf6329997ef9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c92ed50498e77052e707cefff2472319116ab7b0a05b17baeb45cf6329997ef9", kill_on_drop: false }`
[INFO] [stdout] c92ed50498e77052e707cefff2472319116ab7b0a05b17baeb45cf6329997ef9
